home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / Apple II / Essentials / Technical.Notes / PDOS / TN.PDOS.023 < prev    next >
Encoding:
Text File  |  1990-09-21  |  17.0 KB  |  346 lines  |  [TEXT/pdos]

  1. Apple II
  2. Technical Notes
  3. _____________________________________________________________________________
  4.                                                   Developer Technical Support
  5.  
  6. ProDOS 8
  7. #23:    ProDOS 8 Changes and Minutia
  8.  
  9. Revised by:    Matt Deatherage                                 September 1990
  10. Written by:    Matt Deatherage                                      July 1989
  11.  
  12. This Technical Note documents the change history of ProDOS 8 through V1.9, and 
  13. it supersedes the information on this topic in the ProDOS 8 Technical 
  14. Reference Manual and the ProDOS 8 Update.
  15. Changes since March 1990:  Updated to include ProDOS 8 version 1.9 and its 
  16. known bugs.
  17. _____________________________________________________________________________
  18.  
  19.  
  20. Changes?  You're kidding.
  21.  
  22. No.  One of the side effects of evolving technology is that eventually little 
  23. things (like the disk operating system) have to change to support the new 
  24. technologies.  Every time Apple changes ProDOS 8, the manuals can't be 
  25. reprinted.  For one thing, it takes a long time to turn out a manual, by which 
  26. time there's often a new version done which the new manual doesn't cover.  For 
  27. another thing, programmers and developers don't tend to purchase revised 
  28. manuals (our informal research shows that more people have up-to-date Apple 
  29. /// RPS documentation than have up-to-date Apple IIc documentation--and this 
  30. was done before the Apple IIc Plus was released...).
  31.  
  32. So this Note explains what has changed between ProDOS 8 V1.0 and the current 
  33. release, V1.9, which began shipping with System Software 3.2.  Table 1 shows 
  34. what versions of ProDOS 8 existing documentation covers.
  35.  
  36.                                                        Version
  37.     Document                                           Number
  38.     ___________________________________________________________
  39.     ProDOS 8 Technical Reference Manual                1.1.1
  40.     ProDOS 8 Update                                    1.4
  41.     AppleShare Programmer's Guide to the Apple IIgs    1.5
  42.     ___________________________________________________________
  43.  
  44.     Table 1-ProDOS 8 Documentation
  45.  
  46. ProDOS 1.0
  47.  
  48. This was the first release of ProDOS, which was so unique it didn't even have 
  49. to be called ProDOS 8 to distinguish it from ProDOS 16.  If you have 
  50. documentation that predates ProDOS 1.0, you should seek professional help from 
  51. APDA at the address listed in Technical Note #0.
  52.  
  53. ProDOS 1.0.1
  54.  
  55.   o  Fixed a bug in the STATUS call which affected testing for the 
  56.      write-protected condition.
  57.  
  58. ProDOS 1.0.2
  59.  
  60.   o  Changed instructions used in interrupt entry routines on the 
  61.      global page so the accumulator would not be destroyed.
  62.   o  Fixed a bug in the Disk II core routines so the motor would shut 
  63.      off after recalibration on an error.
  64.  
  65. ProDOS 1.1
  66.  
  67.   o  Changed the internal MLI layout for future expansibility and 
  68.      maintenance.
  69.   o  Modified machine ID routines to identify IIc and enhanced IIe 
  70.      ROMs.
  71.   o  Removed code that allowed ProDOS to boot on 48K machines.
  72.   o  Removed the check for the ProDOS version number from the OPEN 
  73.      routine.
  74.   o  Incremented KVERSION (the ProDOS Kernel version) on the global 
  75.      page.
  76.   o  Modified the loader routines to reflect the presence of any 80-
  77.      column card following the established protocol (see ProDOS 8 
  78.      Technical Note #15, How ProDOS 8 Treats Slot 3).  Also, at this 
  79.      time, added code to allow slot 3 to be enabled on a IIe if an 80-
  80.      column card following the protocol was found.
  81.   o  Added code to turn off all disk motor phases prior to seeking a 
  82.      track in the Disk II driver.
  83.   o  Fixed a bug to prevent accesses to /RAM after it had been removed 
  84.      from the device list.
  85.   o  Reduced the size of the /RAM device by one block to protect 
  86.      interrupt vectors in the auxiliary language card.  The correct 
  87.      vectors are installed at boot time.
  88.  
  89. ProDOS 1.1.1
  90.  
  91.   o  Fixed a Disk II driver bug for mapping into drive 1.
  92.   o  Modified machine ID routines to give precedence to identifiable 
  93.      80-column cards in slot 3.
  94.  
  95. ProDOS 8 1.2
  96.  
  97.   o  Changed the name from ProDOS to ProDOS 8 to avoid confusion with 
  98.      ProDOS 16, which, again, this Note does not discuss.
  99.   o  Introduced the clock driver for the Apple IIgs.  The machine 
  100.      identification code was changed to indicate the presence of the 
  101.      clock on the IIgs.
  102.   o  Added preliminary network support by adding the network call and 
  103.      preliminary network driver space.
  104.   o  Fixed a bug in returning errors from calls to the RAM disk.  
  105.      Changed the RAM disk driver to return values of zero on reads and 
  106.      ignore writes to blocks zero, one, four, five, six, and seven, 
  107.      which are not accessible as storage in the driver's design.
  108.   o  Added a new system error ($C) for errors when deallocating blocks 
  109.      from a tree file.
  110.   o  Fixed a bug in zeroing a Volume Control Block (VCB) when trying to 
  111.      reallocate a previously used VCB.
  112.   o  Modified the ProDOS 8 loader code to automatically install up to 
  113.      four drives in slot 5 if a SmartPort device is found.  Removed the 
  114.      code to always leave interrupts disabled, which leaves the state 
  115.      of the interrupt flag at boot time unchanged while ProDOS 8 loads.
  116.   o  Changed the MLI entry to disable interrupts until after the 
  117.      MLIACTV flag is set and other ProDOS parameters are initialized.
  118.   o  Modified the QUIT code to allow the Delete key to function the 
  119.      same as the left arrow key.  Also fixed a bug so screen holes 
  120.      would not be trashed in 80-column mode.  Crunched code to allow 
  121.      soft switch accesses to force 40-column text mode.  Fixed a bug so 
  122.      the dispatcher would not trash the screen when executed with a NIL 
  123.      prefix.
  124.   o  Modified the ONLINE call so that it could be made to a device that 
  125.      had just been removed from the device list by the standard 
  126.      protocol.  Previous to this change, a VCB for the removed device 
  127.      was left, reducing the number of on-line volumes by one for each 
  128.      such device.  From this point on, removing a device should be 
  129.      followed by an ONLINE call to the device just removed.  The call 
  130.      returns error $28 (No Device Connected), but deallocates the VCB.
  131.   o  Added a spurious interrupt handler to allow up to 255 unclaimed 
  132.      interrupts before system death.
  133.   o  Removed the code which invoked low-resolution graphics on system 
  134.      death--it had not worked well and the space was needed.  The system 
  135.      had previously had the ability to display "INSERT SYSTEM DISK AND 
  136.      RESTART" without also displaying "-ERR xx", which was removed at 
  137.      this point for space reasons since the system wasn't using it (and 
  138.      hopefully you weren't, either, since it wasn't documented).
  139.   o  Changed MLIACTV to use an ASL instead of an LSR to turn "off" the 
  140.      flag.
  141.   o  Changed the OPEN call to correctly return error $4B (Unsupported 
  142.      Storage Type) instead of error $4A (incompatible file format for 
  143.      this version) when attempting to open a file with an unrecognized 
  144.      storage type.
  145.   o  Fixed an obscure bug involving READ in Newline mode.  If the 
  146.      requested number of bytes was greater than $FF, and the number of 
  147.      bytes in the file after the newline character was read was a 
  148.      multiple of $100, then the number of bytes reported transferred by 
  149.      ProDOS was equal to the correct number of transferred bytes plus 
  150.      $100.
  151.   o  Starting with V1.2 on an Apple IIgs, stopped switching slot 3 ROM 
  152.      space and left the determination of whether the slot or the port 
  153.      was enabled to the Control Panel; however, there was a bug in this 
  154.      implementation which was fixed in V1.7 and described in ProDOS 8 
  155.      Technical Note #15, How ProDOS 8 Treats Slot 3.
  156.   o  Updated the slot-based clock driver's year table through 1991.
  157.   o  Added a feature which allows ProDOS 8 to search for a file named 
  158.      ATINIT in the boot volume's root directory, to load and execute 
  159.      it, then to proceed normally with the boot process by loading the 
  160.      first .SYSTEM file.  No error occurs if the ATINIT file is not 
  161.      found, but any other error condition (including the file existing 
  162.      and not having file type $E2) causes a fatal error.
  163.   o  Changed loader code so ProDOS 8 could be loaded by ProDOS 16 
  164.      without automatically executing the ATINIT and the first .SYSTEM 
  165.      file.
  166.   o  Changed the device search process in the ProDOS 8 loader so 
  167.      SmartPort devices are only installed if they actually exist, and 
  168.      Disk IIs are placed with lowest priority in the device list so 
  169.      they are scanned last.
  170.   o  Forced Super Hi-Res off on an Apple IIgs when a fatal error 
  171.      occurs.  (Actually, this did not work, but it was fixed in V1.7.)
  172.   o  Inserted a patch to fix a bug in the first IIgs ROM that caused 
  173.      internal $Cn00 ROM space to be left mapped in if SmartPort failed 
  174.      to boot.
  175.  
  176. ProDOS 8 1.3
  177.  
  178. Warning:  This is not a stable version of ProDOS due to an illegal 
  179.           65C02 instruction which was added.  This version can damage 
  180.           disks if used with a 6502 processor.
  181.  
  182.   o  Changed the code that resets phase lines for Disk IIs so phase 
  183.      clearing is done with a load instead of a store, since stores to 
  184.      even numbered locations cause bus contention, which is major 
  185.      uncool.  Changed the routine to force access to all eight even 
  186.      locations, which not only clears the phases, but also forces read 
  187.      mode, first drive, and motor off.  DOS used to do this; ProDOS had 
  188.      not been doing it.  If L7 had been left on when the Disk II driver 
  189.      was called and it checked write-protect with L6 high, write mode 
  190.      was enabled.  Forcing read mode leaves less to chance.
  191.   o  Changed deallocation of index blocks so index blocks are not 
  192.      zeroed, allowing the use of file recovery utilities.  Instead, 
  193.      index blocks are "flipped" (the first 256 bytes are exchanged with 
  194.      the last 256 bytes).
  195.   o  Since the UniDisk 3.5 interface card for the ][+ and IIe does not 
  196.      set up its device chain unless a ProDOS call is made to it, ProDOS 
  197.      STATUS calls are now made to the device before SmartPort STATUS 
  198.      calls.
  199.  
  200. ProDOS 8 1.4
  201.  
  202.   o  Removed an illegal 65C02 instruction which was added in V1.3.
  203.   o  Modified the Disk II driver so a routine that should only clear 
  204.      the phase lines only clears the phase lines.  Also clear Q7 to 
  205.      prevent inadvertent writes.
  206.  
  207. Warning:  The AppleTalk command, which was added in version 1.5, is 
  208.           present as a skeleton in this version.  Unfortunately, it's 
  209.           not a useful skeleton.  It moves a section of memory from a 
  210.           ProDOS location to another location and transfers control, 
  211.           totally oblivious of the fact that there is no code at this 
  212.           address.
  213.  
  214.           Even more unfortunate, the server software that ships with 
  215.           the Apple IIe Workstation Card is such that when the IIe is 
  216.           booted over the network with that server software, it is 
  217.           version 1.4 (KVERSION = 4).
  218.  
  219.           So if you boot version 1.4 from a local disk, making a $42 
  220.           call is fatal.  See ProDOS 8 Technical Note #21, Identifying 
  221.           ProDOS Devices, for a reliable way to identify AppleTalk 
  222.           volumes under ProDOS 8 version 1.4.
  223.  
  224. ProDOS 8 1.5
  225.  
  226.   o  ProDOS 8 1.5 is the first version to include network support 
  227.      through the ProDOS Filing Interface (PFI) as part of ProDOS 16 or 
  228.      on the Apple IIe Workstation Card without booting over the server 
  229.      (see the warning under version 1.4).  Made many changes to 
  230.      internal routines for PFI location and compatibility at this 
  231.      point.  Crunched and moved code for PFI booting and accessibility.
  232.   o  Changed some strings to all uppercase internally for string 
  233.      comparisons.
  234.   o  Removed the generic $42 AppleTalk call (the cause of the previous 
  235.      warning) which was introduced in V1.2, as PFI gets called through 
  236.      the global page.
  237.   o  Changed the ASL to clear the MLIACTV flag back to an LSR.  This 
  238.      doesn't make nested levels of busy states possible, but always 
  239.      clears the flag before calling interrupt handling routines that 
  240.      check MLIACTV as described in the ProDOS 8 Technical Reference 
  241.      Manual.
  242.   o  If an Escape key is detected in the keyboard buffer on an Apple 
  243.      IIc, it is removed.  This is friendly to the Apple IIc Plus, the 
  244.      ROM of which does not remove the Escape key it uses to detect that 
  245.      the system should be booted at normal speed.
  246.  
  247. ProDOS 8 1.6
  248.  
  249.   o  Set up a parallel pointer to correct a PFI misinterpretation of an 
  250.      internal MLI pointer.
  251.  
  252. ProDOS 8 1.7
  253.  
  254.   o  Made a change to ensure that ProDOS 8 counts the volume's bitmap 
  255.      before incrementing the number of free blocks.  This fixed a bug 
  256.      where an uninitialized location was being incremented and 
  257.      decremented, incorrectly reporting a Disk Full error where none 
  258.      should have occurred.
  259.   o  Changed the handling of slot 3 ROM space to that described in 
  260.      ProDOS 8 Technical Note #15, How ProDOS 8 Treats Slot 3.
  261.   o  Changed code to permit the invisible bit of the access byte (bit 2) 
  262.      to be set by applications.
  263.  
  264. ProDOS 8 1.8
  265.  
  266.   o  Fixed a bug introduced in V1.3.  If an error occurs while calling 
  267.      DESTROY on a file, the file is not deleted but the index blocks 
  268.      are not swapped back to normal position.  If a subsequent DESTROY 
  269.      of the same file succeeds, the volume's integrity is destroyed.  
  270.      Now ProDOS 8 marks the file as deleted, even if an error occurs, 
  271.      so any other errors do not cause a subsequent MLI call to trash 
  272.      the volume.  Note that "undelete" utilities attempting to undelete 
  273.      such a file (one in which an error occurred during the DESTROY ) 
  274.      may trash the volume.
  275.   o  Fixed the ONLINE call to ignore the unused low nibble of the 
  276.      unit_num parameter when deciding how many bytes to zero in the 
  277.      application's buffer.  This change fixes a bug which zeroed only 
  278.      the first 16 bytes of the caller's buffer before filling them if 
  279.      an ONLINE call was made with a unit_num of $0X, where X is non-
  280.      zero.
  281.   o  When loading on an Apple IIgs, ProDOS 8 now sets the video mode so 
  282.      the 80-column firmware is not active when the ProDOS 8 application 
  283.      gets control.
  284.   o  Changed internal version checking between GS/OS and ProDOS 8.  
  285.      Note that GS/OS and ProDOS 8 are still tied to each other--versions 
  286.      that didn't come on the same disk can't be used together.  The 
  287.      methods for checking versions were just altered.
  288.   o  Made the backward compatibility check when opening subdirectories 
  289.      inactive.  The test would always fail when opening a subdirectory 
  290.      with lowercase characters in the name (as assigned by the ProDOS 
  291.      FST under GS/OS), so the check was removed.  Note that using 
  292.      earlier versions of ProDOS 8 with such disks causes errors when 
  293.      trying to access files with such directories in their pathnames.
  294.   o  Expanded the ProDOS 8 loader code to provide for more room for 
  295.      future compatibility.
  296.   o  On a IIgs, installs a patch into the GS/OS stack-based call vector 
  297.      so that anyone calling GS/OS routines (like QDStartUp in ROM 03, 
  298.      for example) gets an appropriate error instead of performing a JSL 
  299.      into the stratosphere.
  300.  
  301. ProDOS 8 1.9
  302.  
  303.   o  New selector and dispatcher code was added for machines with 80 
  304.      columns.  The old code is still present for machines without 80-
  305.      column capability.
  306.  
  307.   o  Fixed two bugs involved in booting into a ".SYSTEM" program larger 
  308.      than 38K.  First, ProDOS 8 should be able to boot into a program 
  309.      as large as 39.75K, but was returning an error if the ".SYSTEM" 
  310.      program was larger than 38K.  Second, when attempting to print the 
  311.      message "*** SYSTEM PROGRAM TOO LARGE ***", only one asterisk was 
  312.      printed.  Both these bugs are fixed.
  313.  
  314.   o  No longer requires a ".SYSTEM" file when booting.  If ProDOS 8 
  315.      does not find a ".SYSTEM" file and the enhanced selector and 
  316.      dispatcher code is installed, ProDOS 8 executes a QUIT call.
  317.  
  318.   o  KVERSION is still $08.
  319.  
  320. Known Bugs in ProDOS 8 1.9
  321.  
  322.   o  ProDOS 8 doesn't handle seedling sparse files correctly.  If you 
  323.      have a seedling file (only one block, less than 512 bytes of data) 
  324.      and use SET_EOF to grow the EOF without writing any data, the file 
  325.      becomes a sparse seedling file.  The EOF indicates the file is a 
  326.      sapling or tree file, but in fact only one disk block is used.  
  327.      The storage type correctly indicates a seedling file.
  328.  
  329.      If you have such a file, and try to shrink it by setting the EOF 
  330.      to a value that is not an even multiple of a block boundary, 
  331.      ProDOS 8 gets confused and trashes some of the second half of the 
  332.      real data block.
  333.  
  334.   o  If you perform a SET_PREFIX to a slash (/) followed by a 
  335.      SET_PREFIX to a volume name not preceded by a slash, the prefix 
  336.      gets set to the first letter of the volume name.
  337.  
  338.  
  339. Further Reference
  340. _____________________________________________________________________________
  341.   o  ProDOS 8 Technical Reference Manual
  342.   o  ProDOS 8 Update
  343.   o  AppleShare Programmer's Guide to the Apple II
  344.   o  ProDOS 8 Technical Note #21, Identifying ProDOS Devices
  345.  
  346.